package com.pactera.madp.cp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * @author: yangpengwei
 * @time: 2020/12/1 10:50 上午
 * @description ToUsers 接口请求参数
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "会话存档-员工信息")
public class ReqToUsersDTO{

    @NotNull(message = " 检索对象id 不能为 null")
    @ApiModelProperty(value = "检索对象id")
    private Integer userId;


    @NotNull(message = "检索对象类型不能为 null")
    @Range(min = 0, max = 2, message = "类型无效")
    @ApiModelProperty(value = "检索对象类型，可选参数")
    private Integer usertype;

    @ApiModelProperty(value = "检索对象名称")
    private String name;

}
